<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%
	String path = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="0" />

<title></title>
 <script src="<%=path %>/jqgrid/jquery.js" type="text/javascript"></script>
<script src="<%=path %>/jqgrid/js/i18n/grid.locale-cn.js" type="text/javascript"></script>
<script src="<%=path %>/jqgrid/jquery.jqGrid.js" type="text/javascript"></script>    


<script src="<%=path%>/commons/layout/jquery-ui-1.8.14.custom.min.js" type="text/javascript"></script>
<script src="<%=path%>/commons/layout/jquery.layout.min-1.2.0.js" type="text/javascript"></script>
 
 

 
<link rel="stylesheet" type="text/css" media="screen" href="<%=path %>/jqgrid/css/redmond/jquery-ui-1.8.2.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<%=path %>/jqgrid/css/ui.jqgrid.css" />

<link href="<%=path%>/commons/css/sy/system.main.css" rel="stylesheet" type="text/css"/>




<script type="text/javascript">
var maintab;
$(function() {
	var myLayout = $("body").layout( { applyDefaultStyles: true } );
	//myLayout.sizePane("north", 112);

	//$("#UpPane").load("header.html");
	//$("#LeftPane").load("menu.html");
	$("#tabs-home").load("home.html");

	//在menu.html中触发maintab的add事件时，需要激活这个新增的tab
	maintab =$('#tabs', '#RightPane').tabs({
		add: function(e, ui) {
			// append close thingy
			$(ui.tab).parents('li:first')
				.append('<span class="ui-tabs-close ui-icon ui-icon-close" title="Close Tab"></span>')
				.find('span.ui-tabs-close')
				.click(function() {
					maintab.tabs( 'remove', $('li', maintab).index($(this).parents('li:first')[0] ) );
				} );
			// select just added tab
			maintab.tabs('select', '#' + ui.panel.id);
		}
	});
});
</script>
</head>

<body>
	
	<div id="RightPane" class="ui-layout-center ui-helper-reset ui-widget-content" >
		<div id="tabs">
			<ul>
				<li><a href="#tabs-home">工作台</a></li>
			</ul>
			<div id="tabs-home" style="font-size:12px;">
			</div>
		</div>
	</div>


</body>
</html>
